FROM 192.168.100.76:5000/centos7_jdk_tomcat
USER root
WORKDIR /data/
MAINTAINER libin "libin2@danlu.com"

#修改对应微服务的tomcat目录名称,并删除webapps下文件
RUN cd /data/ && cp tomcat1 dldata -r && rm dldata/webapps/* -rf
ADD ROOT.war /data/dldata/webapps/

#启动tomcat
CMD ["/data/dldata/bin/catalina.sh","run"]
